include <io.h> for lseek() use HAVE_UNISTD_H
authorHans Breuer <hans@breuer.org>
Sat, 28 Feb 2004 13:17:53 +0000 (13:17 +0000)
committerHans Breuer <hans@src.gnome.org>
Sat, 28 Feb 2004 13:17:53 +0000 (13:17 +0000)
2004-02-28  Hans Breuer  <hans@breuer.org>

* io-tiff.c : include <io.h> for lseek()
* io-xbm.c : use HAVE_UNISTD_H

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-tiff.c
gdk-pixbuf/io-xbm.c

index ce2dbea7112f3cd2c9efd94f90935ee5e3958d53..25ef6e83c97a587ee1a020388c19e45e65c305f1 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-28  Hans Breuer  <hans@breuer.org>
+
+       * io-tiff.c : include <io.h> for lseek()
+       * io-xbm.c : use HAVE_UNISTD_H
+
 Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>
 
        * === Released 2.3.3 ===
index 2d47f6594406da09affaee936c5ed89514281061..3ce8551a53d7c5307b863cbf4e00b710192297c1 100644 (file)
@@ -40,6 +40,8 @@
 
 #ifdef G_OS_WIN32
 #include <fcntl.h>
+#include <io.h>
+#define lseek(a,b,c) _lseek(a,b,c)
 #define O_RDWR _O_RDWR
 #endif
 \f
index 1a510183a36e787ef2bd195d28eee9db39c47b62..060339d156233d41da5dde0349c592ff52481a1b 100644 (file)
@@ -32,7 +32,9 @@
 #include <config.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <stdio.h>
 #include <errno.h>
 #include "gdk-pixbuf-private.h"